Enterprise Objects Framework Release 1.1 Copyright ã1995 by NeXT Computer, Inc.  All Rights Reserved.

NXImageFormatter

Inherits From:	NXFormatter : Object

Declared In:	eointerface/NXImageFormatter.h

Class Description

An NXImageFormatter displays NXImage objects in an NXTableView.

Instance Variables

id defaultImage;

defaultImage	The image displayed when the source to be formatted has no image.

Method Types

Initializing and freeing	- init
- free

Accessing the default image	- setDefaultImage:
- defaultImage

Drawing a field	- drawFieldAt::inside:inView:withAttributes::
usePositions::

Archiving	- read:
- write:

Instance Methods

defaultImage

- defaultImage

Returns the image drawn by drawFieldAt:¼ when the data source doesn't have an image for the field.

drawFieldAt::inside:inView:withAttributes::usePositions::

- drawFieldAt:(unsigned int)rowIndex
:(unsigned int)columnIndex
inside:(NXRect *)frameRect 
inView:aView
withAttributes:(id <NXTableVectors>)rowAttributes 
:(id <NXTableVectors>)columnAttributes
usePositions:(BOOL)rowPosFlag
:(BOOL)columnPosFlag

Displays an image in one field, as described in the NXFormatter class specification. You never invoke this method directly; it's invoked automatically by the NXTableView that's using this NXEditableFormatter when a field needs to be displayed. Returns self.

The displayed image is centered vertically; its horizontal alignment is controlled by columnAttributes; it may be centered, left aligned, or right aligned. The image is clipped to frameRect.

Note:  aView isn't an NXTableView, but a private view used by the NXTableView.

See also:  - getValueAt::withAttributes::usePositions:: (NXFormatter)

free

- free

Releases the memory used by the NXImageFormatter and returns nil.

init

- init

Initializes a newly allocated NXImageFormatter instance with the standard default image of a gray rectangle. This is the designated initializer for the NXImageFormatter class. Returns self.

read:

- read:(NXTypedStream *)stream

Reads the NXImageFormatter from the typed stream stream. Returns self.

See also:  - write:

setDefaultImage:

- setDefaultImage:anImage

Makes anImage the image that drawFieldAt:... displays when asked to draw a field that doesn't contain an image. The standard default image is of a gray rectangle. Returns self.

write:

- write:(NXTypedStream *)stream

Writes the NXImageFormatter to the typed stream stream. Returns self.

See also:  - read: